﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports Contracts
Imports Entities

Public Class GetBorrowerWithStatusCode
  Inherits Albatross.ServerSide.Messaging.RequestHandler(Of GetBorrowerWithStatusCodeI)

  Public Overloads Overrides Function Handle(ByVal request As GetBorrowerWithStatusCodeI) As Albatross.Common.Messaging.Response
    Dim response As GetBorrowerWithStatusCodeO

    response = New GetBorrowerWithStatusCodeO

    response.MyBorrower = New Borrower
    response.MyBorrower.FirstName = "Alex"
    response.MyBorrower.LastName = "Smith"

    response.StatusType = 1 ' Success
    response.StatusInfo = "This came back from the host: 'Albatross has a StatusCode and a Message you can pass back to the client on each response.'"

    Return response
  End Function
End Class

